package cn.wolfcode.p2p.web.controller;

import cn.wolfcode.p2p.base.query.IpLogQuery;
import cn.wolfcode.p2p.base.service.impl.IpLogServiceImpl;
import cn.wolfcode.p2p.base.util.UserContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 后台:登录日志列表
 */
@Controller
public class IpLogController {
    @Autowired
    private IpLogServiceImpl ipLogService;

    //登录日志列表
    @RequestMapping("/ipLog")
    public String list(Model model, @ModelAttribute("qo") IpLogQuery qo) {
        model.addAttribute("pageInfo", ipLogService.query(qo));
        return "ipLog/list";
    }
}
